package com.szj.pet.hospital.model.hosp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.szj.pet.hospital.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "预约管理")
@TableName("reserve")
public class Reserve extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主人名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "手机号码")
    @TableField("phone_number")
    private String phoneNumber;

    @ApiModelProperty(value = "宠物类型")
    @TableField("pet_type")
    private String petType;

    @ApiModelProperty(value = "宠物年龄")
    @TableField("pet_age")
    private int petAge;

    @ApiModelProperty(value = "预约项目")
    @TableField("reserve_item")
    private String reserveItem;

    @ApiModelProperty(value = "预约时间")
    @TableField("reserve_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date reserveTime;

    @ApiModelProperty(value = "项目编号")
    @TableField("item_number")
    private int itemNumber;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "用户标识")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "医生姓名")
    @TableField("doctor_name")
    private String doctorName;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    //接收前端的时间数据
    @ApiModelProperty(value = "预约时间")
    @TableField("buffer_time")
    private String bufferTime;

    @ApiModelProperty(value = "诊断")
    @TableField("diagnosis")
    private String diagnosis;
}
